package com.example.mallorder.fegin;

import com.example.mallorder.controller.vo.MemberAddressVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author guanglin.ma
 * @date 2024-01-08 15:07
 */
@FeignClient("mall-member")
@Component
public interface MemberFeginService {

    @GetMapping("/mallmember/member/{memberId}/address")
    List<MemberAddressVO> getAddress(@PathVariable("memberId") Long memberId);

    @RequestMapping("/mallmember/memberreceiveaddress/membe-receive-address/{id}")
    //@RequiresPermissions("member:memberreceiveaddress:info")
    public MemberAddressVO getAddressById(@PathVariable("id") Long id);
}
